package com.linkgie.galaxyframework.persistence.mongodb;

import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import com.linkgie.galaxyframework.persistence.AuditablePO;

/**
 * 可校验的的持久化对象；
 * 
 * @author huanghaiquan
 *
 */
public class AuditableChecksumSchemaVersionedMongoPO extends ChecksumSchemaVersionedMongoPO implements AuditablePO {

	@CreatedBy
	private String createdBy;

	@CreatedDate
	private long createdTime;

	@LastModifiedBy
	private String lastModifiedBy;

	@LastModifiedDate
	private long lastModifiedTime;

	@Override
	public void setCreatedTime(long createdTime) {
		this.createdTime = createdTime;
	}

	@Override
	public void setLastModifiedTime(long lastModifiedTime) {
		this.lastModifiedTime = lastModifiedTime;
	}

	@Override
	public long getCreatedTime() {
		return createdTime;
	}

	@Override
	public long getLastModifiedTime() {
		return lastModifiedTime;
	}

	@Override
	public String getCreatedBy() {
		return createdBy;
	}

	@Override
	public String getLastModifiedBy() {
		return lastModifiedBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public void setLastModifiedBy(String lastModifiedBy) {
		this.lastModifiedBy = lastModifiedBy;
	}

}
